

<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row">
        
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="searchform.name" placeholder="产品名1111">
        </div>
        
        <div class="col-sm-2 col-sm-offset-8">
            <button class="btn btn-block btn-info" ng-click="load()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
<div class="panel panel-default" ng-repeat="obj in objs">
    <div class="panel-body">
        <div class="col-sm-8 " >
            {{obj.name}} [{{obj.code}}]
        </div>
        <div class="col-sm-3 text-right" >
            <div class="input-group input-group-sm">
              <input type="text" class="form-control" 
              value="{{obj.asort}}" ng-model="obj.asort" >
              <span class="input-group-btn">
                <button class="btn btn-default" ng-click="asort(obj)"  type="button">排序!</button>
              </span>
            </div><!-- /input-group -->
        </div>
        <div class="col-sm-1 text-right" >
            

            <button ng-if="obj.isallow == '0'" ng-click="up(obj)" 
             type="button" class="btn btn-sm btn-success">上架</button>

            <button ng-if="obj.isallow == '1'" ng-click="down(obj)" 
             type="button" class="btn btn-sm btn-info">下架</button>
        </div>
    </div>

    <table class="table">
        <thead>
          <tr>
            <th>型号名称</th>
            <th>分销价格</th>
            <th>商城价格</th>
            <th>利润空间</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="attr in obj.attrlist">
            <td>{{attr.attr_name}}</td>
            <td>{{attr.cost_price | currency : '￥'}}</td>
            <td>{{attr.guide_price | currency : '￥'}}</td>
            <td>{{(attr.guide_price - attr.cost_price)| currency : '￥'}}</td>
          </tr>
        </tbody>
      </table>

</div>


        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>